
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: package UnRAR</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>UnRAR</strong></big></big> (version 1.0)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:///C|/projects/python%20path/unrar/__init__.py">c:\projects\python path\unrar\__init__.py</a></font></td></tr></table>
    <p><tt>pyUnRAR&nbsp;is&nbsp;a&nbsp;ctypes&nbsp;based&nbsp;wrapper&nbsp;around&nbsp;the&nbsp;free&nbsp;UnRAR.dll.&nbsp;It<br>
enables&nbsp;reading&nbsp;and&nbsp;unpacking&nbsp;of&nbsp;archives&nbsp;created&nbsp;with&nbsp;the<br>
RAR/WinRAR&nbsp;archivers.&nbsp;There&nbsp;is&nbsp;a&nbsp;low-level&nbsp;interface&nbsp;which&nbsp;is&nbsp;very<br>
similar&nbsp;to&nbsp;the&nbsp;C&nbsp;interface&nbsp;provided&nbsp;by&nbsp;UnRAR.&nbsp;There&nbsp;is&nbsp;also&nbsp;a<br>
higher&nbsp;level&nbsp;interface&nbsp;which&nbsp;makes&nbsp;some&nbsp;common&nbsp;operations&nbsp;easier.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="UnRAR.setup.html">setup</a><br>
</td><td width="25%" valign=top><a href="UnRAR.test_UnRAR.html">test_UnRAR</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="UnRAR.html#Archive">Archive</a>
</font></dt><dt><font face="helvetica, arial"><a href="UnRAR.html#RARFile">RARFile</a>
</font></dt><dt><font face="helvetica, arial"><a href="_ctypes.html#Structure">_ctypes.Structure</a>(_ctypes._CData)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="UnRAR.html#RARHeaderData">RARHeaderData</a>
</font></dt><dt><font face="helvetica, arial"><a href="UnRAR.html#RARHeaderDataEx">RARHeaderDataEx</a>
</font></dt><dt><font face="helvetica, arial"><a href="UnRAR.html#RAROpenArchiveData">RAROpenArchiveData</a>
</font></dt><dt><font face="helvetica, arial"><a href="UnRAR.html#RAROpenArchiveDataEx">RAROpenArchiveDataEx</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="exceptions.html#Exception">exceptions.Exception</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="UnRAR.html#ArchiveHeaderBroken">ArchiveHeaderBroken</a>
</font></dt><dt><font face="helvetica, arial"><a href="UnRAR.html#FileOpenError">FileOpenError</a>
</font></dt><dt><font face="helvetica, arial"><a href="UnRAR.html#InvalidRARArchive">InvalidRARArchive</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Archive">class <strong>Archive</strong></a></font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Open&nbsp;and&nbsp;operate&nbsp;on&nbsp;an&nbsp;archive.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Archive-__del__"><strong>__del__</strong></a>(self)</dt></dl>

<dl><dt><a name="Archive-__init__"><strong>__init__</strong></a>(self, archiveName, password<font color="#909090">=None</font>)</dt><dd><tt>Instantiate&nbsp;the&nbsp;archive.<br>
&nbsp;<br>
archiveName&nbsp;is&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;RAR&nbsp;file.<br>
password&nbsp;is&nbsp;used&nbsp;to&nbsp;decrypt&nbsp;the&nbsp;files&nbsp;in&nbsp;the&nbsp;archive.<br>
&nbsp;<br>
Properties:<br>
&nbsp;&nbsp;&nbsp;&nbsp;comment&nbsp;-&nbsp;comment&nbsp;associated&nbsp;with&nbsp;the&nbsp;archive<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;print&nbsp;<a href="#Archive">Archive</a>('test.rar').comment<br>
This&nbsp;is&nbsp;a&nbsp;test.</tt></dd></dl>

<dl><dt><a name="Archive-extract"><strong>extract</strong></a>(self, filespec<font color="#909090">='*'</font>)</dt><dd><tt>Extract&nbsp;all&nbsp;files&nbsp;in&nbsp;the&nbsp;archive&nbsp;matching&nbsp;the&nbsp;filespec.<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;<a href="#Archive">Archive</a>('test.rar').<a href="#Archive-extract">extract</a>('*.pyc')</tt></dd></dl>

<dl><dt><a name="Archive-iterfiles"><strong>iterfiles</strong></a>(self)</dt><dd><tt>Iterate&nbsp;over&nbsp;all&nbsp;the&nbsp;files&nbsp;in&nbsp;the&nbsp;archive.<br>
&nbsp;<br>
The&nbsp;yielded&nbsp;<a href="#RARFile">RARFile</a>&nbsp;should&nbsp;not&nbsp;be&nbsp;stored,&nbsp;it&nbsp;is&nbsp;not&nbsp;valid&nbsp;once<br>
the&nbsp;next&nbsp;iteration&nbsp;has&nbsp;occurred.<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;import&nbsp;os<br>
&gt;&gt;&gt;&nbsp;for&nbsp;fileInArchive&nbsp;in&nbsp;<a href="#Archive">Archive</a>('test.rar').<a href="#Archive-iterfiles">iterfiles</a>():<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;os.path.split(fileInArchive.filename)[-1],<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;fileInArchive.isdir,<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;fileInArchive.size,<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;fileInArchive.comment,<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;fileInArchive.datetime,<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;time.strftime('%a,&nbsp;%d&nbsp;%b&nbsp;%Y&nbsp;%H:%M:%S',&nbsp;fileInArchive.datetime)<br>
test&nbsp;True&nbsp;0&nbsp;None&nbsp;(2003,&nbsp;6,&nbsp;30,&nbsp;1,&nbsp;59,&nbsp;48,&nbsp;0,&nbsp;181,&nbsp;1)&nbsp;Mon,&nbsp;30&nbsp;Jun&nbsp;2003&nbsp;01:59:48<br>
test.txt&nbsp;False&nbsp;20&nbsp;None&nbsp;(2003,&nbsp;6,&nbsp;30,&nbsp;2,&nbsp;1,&nbsp;2,&nbsp;0,&nbsp;181,&nbsp;1)&nbsp;Mon,&nbsp;30&nbsp;Jun&nbsp;2003&nbsp;02:01:02<br>
this.py&nbsp;False&nbsp;1030&nbsp;None&nbsp;(2002,&nbsp;2,&nbsp;8,&nbsp;16,&nbsp;47,&nbsp;48,&nbsp;4,&nbsp;39,&nbsp;0)&nbsp;Fri,&nbsp;08&nbsp;Feb&nbsp;2002&nbsp;16:47:48</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="ArchiveHeaderBroken">class <strong>ArchiveHeaderBroken</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="ArchiveHeaderBroken-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>

<dl><dt><a name="ArchiveHeaderBroken-__init__"><strong>__init__</strong></a>(...)</dt></dl>

<dl><dt><a name="ArchiveHeaderBroken-__str__"><strong>__str__</strong></a>(...)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="FileOpenError">class <strong>FileOpenError</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="FileOpenError-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>

<dl><dt><a name="FileOpenError-__init__"><strong>__init__</strong></a>(...)</dt></dl>

<dl><dt><a name="FileOpenError-__str__"><strong>__str__</strong></a>(...)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="InvalidRARArchive">class <strong>InvalidRARArchive</strong></a>(<a href="exceptions.html#Exception">exceptions.Exception</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Methods inherited from <a href="exceptions.html#Exception">exceptions.Exception</a>:<br>
<dl><dt><a name="InvalidRARArchive-__getitem__"><strong>__getitem__</strong></a>(...)</dt></dl>

<dl><dt><a name="InvalidRARArchive-__init__"><strong>__init__</strong></a>(...)</dt></dl>

<dl><dt><a name="InvalidRARArchive-__str__"><strong>__str__</strong></a>(...)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="RARFile">class <strong>RARFile</strong></a></font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Represent&nbsp;a&nbsp;file&nbsp;in&nbsp;an&nbsp;archive.&nbsp;Don't&nbsp;instantiate&nbsp;directly.<br>
&nbsp;<br>
Properties:<br>
&nbsp;&nbsp;&nbsp;&nbsp;filename&nbsp;-&nbsp;name&nbsp;of&nbsp;the&nbsp;file&nbsp;in&nbsp;the&nbsp;archive&nbsp;including&nbsp;path&nbsp;(if&nbsp;any)<br>
&nbsp;&nbsp;&nbsp;&nbsp;datetime&nbsp;-&nbsp;file&nbsp;date/time&nbsp;as&nbsp;a&nbsp;struct_time&nbsp;suitable&nbsp;for&nbsp;time.strftime<br>
&nbsp;&nbsp;&nbsp;&nbsp;isdir&nbsp;-&nbsp;True&nbsp;if&nbsp;the&nbsp;file&nbsp;is&nbsp;a&nbsp;directory<br>
&nbsp;&nbsp;&nbsp;&nbsp;size&nbsp;-&nbsp;size&nbsp;in&nbsp;bytes&nbsp;of&nbsp;the&nbsp;uncompressed&nbsp;file<br>
&nbsp;&nbsp;&nbsp;&nbsp;comment&nbsp;-&nbsp;comment&nbsp;associated&nbsp;with&nbsp;the&nbsp;file<br>
&nbsp;<br>
Note&nbsp;-&nbsp;this&nbsp;is&nbsp;not&nbsp;currently&nbsp;intended&nbsp;to&nbsp;be&nbsp;a&nbsp;Python&nbsp;file-like&nbsp;object.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="RARFile-__init__"><strong>__init__</strong></a>(self, RAR, headerData)</dt></dl>

<dl><dt><a name="RARFile-__str__"><strong>__str__</strong></a>(self)</dt></dl>

<dl><dt><a name="RARFile-extract"><strong>extract</strong></a>(self, filename<font color="#909090">=None</font>)</dt><dd><tt>Extract&nbsp;the&nbsp;file&nbsp;to&nbsp;the&nbsp;file&nbsp;system.</tt></dd></dl>

<dl><dt><a name="RARFile-open"><strong>open</strong></a>(self, mode<font color="#909090">='rb'</font>)</dt><dd><tt>Open&nbsp;a&nbsp;file-like&nbsp;object.<br>
&nbsp;<br>
Because&nbsp;of&nbsp;the&nbsp;style&nbsp;of&nbsp;the&nbsp;UnRAR.dll&nbsp;API&nbsp;for&nbsp;extracting&nbsp;files<br>
without&nbsp;writing&nbsp;to&nbsp;disk,&nbsp;extraction&nbsp;must&nbsp;be&nbsp;done&nbsp;in&nbsp;a&nbsp;background<br>
thread.&nbsp;This&nbsp;is&nbsp;encapsulated&nbsp;by&nbsp;pyUnRAR,&nbsp;but&nbsp;you&nbsp;should&nbsp;be&nbsp;aware<br>
that&nbsp;calling&nbsp;this&nbsp;method&nbsp;results&nbsp;in&nbsp;a&nbsp;thread&nbsp;being&nbsp;spawned.<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;for&nbsp;fileInArchive&nbsp;in&nbsp;<a href="#Archive">Archive</a>('test.rar').iterfiles():<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;fileInArchive.filename.endswith('test.txt'):<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print&nbsp;fileInArchive.<a href="#RARFile-open">open</a>('rt').read()<br>
This&nbsp;is&nbsp;only&nbsp;a&nbsp;test.</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="RARHeaderData">class <strong>RARHeaderData</strong></a>(<a href="_ctypes.html#Structure">_ctypes.Structure</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="UnRAR.html#RARHeaderData">RARHeaderData</a></dd>
<dd><a href="_ctypes.html#Structure">_ctypes.Structure</a></dd>
<dd>_ctypes._CData</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="RARHeaderData-__init__"><strong>__init__</strong></a>(self)</dt></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>ArcName</strong> = &lt;Field type=c_char_Array_260, ofs=0, size=260&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtBufSize</strong> = &lt;Field type=c_ulong, ofs=560, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtSize</strong> = &lt;Field type=c_ulong, ofs=564, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtState</strong> = &lt;Field type=c_ulong, ofs=568, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>FileAttr</strong> = &lt;Field type=c_ulong, ofs=552, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>FileCRC</strong> = &lt;Field type=c_ulong, ofs=536, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>FileName</strong> = &lt;Field type=c_char_Array_260, ofs=260, size=260&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>FileTime</strong> = &lt;Field type=c_ulong, ofs=540, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>Flags</strong> = &lt;Field type=c_ulong, ofs=520, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>HostOS</strong> = &lt;Field type=c_ulong, ofs=532, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>Method</strong> = &lt;Field type=c_ulong, ofs=548, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>PackSize</strong> = &lt;Field type=c_ulong, ofs=524, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>UnpSize</strong> = &lt;Field type=c_ulong, ofs=528, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>UnpVer</strong> = &lt;Field type=c_ulong, ofs=544, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'RARHeaderData' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dl>

<hr>
Data and other attributes inherited from <a href="_ctypes.html#Structure">_ctypes.Structure</a>:<br>
<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of _ctypes.StructType object&gt;<dd><tt>T.<a href="#RARHeaderData-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;object&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>

<hr>
Methods inherited from _ctypes._CData:<br>
<dl><dt><a name="RARHeaderData-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#RARHeaderData-__hash__">__hash__</a>()&nbsp;&lt;==&gt;&nbsp;hash(x)</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="RARHeaderDataEx">class <strong>RARHeaderDataEx</strong></a>(<a href="_ctypes.html#Structure">_ctypes.Structure</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="UnRAR.html#RARHeaderDataEx">RARHeaderDataEx</a></dd>
<dd><a href="_ctypes.html#Structure">_ctypes.Structure</a></dd>
<dd>_ctypes._CData</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="RARHeaderDataEx-__init__"><strong>__init__</strong></a>(self)</dt></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>ArcName</strong> = &lt;Field type=c_char_Array_1024, ofs=0, size=1024&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>ArcNameW</strong> = &lt;Field type=c_wchar_Array_1024, ofs=1024, size=2048&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtBufSize</strong> = &lt;Field type=c_ulong, ofs=6192, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtSize</strong> = &lt;Field type=c_ulong, ofs=6196, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtState</strong> = &lt;Field type=c_ulong, ofs=6200, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>FileAttr</strong> = &lt;Field type=c_ulong, ofs=6184, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>FileCRC</strong> = &lt;Field type=c_ulong, ofs=6168, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>FileName</strong> = &lt;Field type=c_char_Array_1024, ofs=3072, size=1024&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>FileNameW</strong> = &lt;Field type=c_wchar_Array_1024, ofs=4096, size=2048&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>FileTime</strong> = &lt;Field type=c_ulong, ofs=6172, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>Flags</strong> = &lt;Field type=c_ulong, ofs=6144, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>HostOS</strong> = &lt;Field type=c_ulong, ofs=6164, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>Method</strong> = &lt;Field type=c_ulong, ofs=6180, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>PackSize</strong> = &lt;Field type=c_ulong, ofs=6148, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>PackSizeHigh</strong> = &lt;Field type=c_ulong, ofs=6152, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>Reserved</strong> = &lt;Field type=c_ulong_Array_1024, ofs=6204, size=4096&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>UnpSize</strong> = &lt;Field type=c_ulong, ofs=6156, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>UnpSizeHigh</strong> = &lt;Field type=c_ulong, ofs=6160, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>UnpVer</strong> = &lt;Field type=c_ulong, ofs=6176, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'RARHeaderDataEx' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dl>

<hr>
Data and other attributes inherited from <a href="_ctypes.html#Structure">_ctypes.Structure</a>:<br>
<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of _ctypes.StructType object&gt;<dd><tt>T.<a href="#RARHeaderDataEx-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;object&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>

<hr>
Methods inherited from _ctypes._CData:<br>
<dl><dt><a name="RARHeaderDataEx-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#RARHeaderDataEx-__hash__">__hash__</a>()&nbsp;&lt;==&gt;&nbsp;hash(x)</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="RAROpenArchiveData">class <strong>RAROpenArchiveData</strong></a>(<a href="_ctypes.html#Structure">_ctypes.Structure</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="UnRAR.html#RAROpenArchiveData">RAROpenArchiveData</a></dd>
<dd><a href="_ctypes.html#Structure">_ctypes.Structure</a></dd>
<dd>_ctypes._CData</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="RAROpenArchiveData-__init__"><strong>__init__</strong></a>(self, ArcName<font color="#909090">=None</font>, OpenMode<font color="#909090">=0</font>)</dt></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>ArcName</strong> = &lt;Field type=c_char_p, ofs=0, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtBufSize</strong> = &lt;Field type=c_ulong, ofs=16, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtSize</strong> = &lt;Field type=c_ulong, ofs=20, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtState</strong> = &lt;Field type=c_ulong, ofs=24, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>OpenMode</strong> = &lt;Field type=c_ulong, ofs=4, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>OpenResult</strong> = &lt;Field type=c_ulong, ofs=8, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'RAROpenArchiveData' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dl>

<hr>
Data and other attributes inherited from <a href="_ctypes.html#Structure">_ctypes.Structure</a>:<br>
<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of _ctypes.StructType object&gt;<dd><tt>T.<a href="#RAROpenArchiveData-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;object&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>

<hr>
Methods inherited from _ctypes._CData:<br>
<dl><dt><a name="RAROpenArchiveData-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#RAROpenArchiveData-__hash__">__hash__</a>()&nbsp;&lt;==&gt;&nbsp;hash(x)</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="RAROpenArchiveDataEx">class <strong>RAROpenArchiveDataEx</strong></a>(<a href="_ctypes.html#Structure">_ctypes.Structure</a>)</font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="UnRAR.html#RAROpenArchiveDataEx">RAROpenArchiveDataEx</a></dd>
<dd><a href="_ctypes.html#Structure">_ctypes.Structure</a></dd>
<dd>_ctypes._CData</dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="RAROpenArchiveDataEx-__init__"><strong>__init__</strong></a>(self, ArcName<font color="#909090">=None</font>, ArcNameW<font color="#909090">=u''</font>, OpenMode<font color="#909090">=0</font>)</dt></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>ArcName</strong> = &lt;Field type=c_char_p, ofs=0, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>ArcNameW</strong> = &lt;Field type=c_wchar_p, ofs=4, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtBufSize</strong> = &lt;Field type=c_ulong, ofs=20, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtSize</strong> = &lt;Field type=c_ulong, ofs=24, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>CmtState</strong> = &lt;Field type=c_ulong, ofs=28, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>Flags</strong> = &lt;Field type=c_ulong, ofs=32, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>OpenMode</strong> = &lt;Field type=c_ulong, ofs=8, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>OpenResult</strong> = &lt;Field type=c_ulong, ofs=12, size=4&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>Reserved</strong> = &lt;Field type=c_ulong_Array_32, ofs=36, size=128&gt;<dd><tt><a href="_ctypes.html#Structure">Structure</a>/Union&nbsp;member</tt></dl>

<dl><dt><strong>__dict__</strong> = &lt;dictproxy object&gt;<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dl>

<dl><dt><strong>__weakref__</strong> = &lt;attribute '__weakref__' of 'RAROpenArchiveDataEx' objects&gt;<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dl>

<hr>
Data and other attributes inherited from <a href="_ctypes.html#Structure">_ctypes.Structure</a>:<br>
<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of _ctypes.StructType object&gt;<dd><tt>T.<a href="#RAROpenArchiveDataEx-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;object&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>

<hr>
Methods inherited from _ctypes._CData:<br>
<dl><dt><a name="RAROpenArchiveDataEx-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#RAROpenArchiveDataEx-__hash__">__hash__</a>()&nbsp;&lt;==&gt;&nbsp;hash(x)</tt></dd></dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-DosDateTimeToTimeTuple"><strong>DosDateTimeToTimeTuple</strong></a>(dosDateTime)</dt><dd><tt>Convert&nbsp;an&nbsp;MS-DOS&nbsp;format&nbsp;date&nbsp;time&nbsp;to&nbsp;a&nbsp;Python&nbsp;time&nbsp;tuple.</tt></dd></dl>
 <dl><dt><a name="-RARSetCallback"><strong>RARSetCallback</strong></a>(*args, **kwargs)</dt></dl>
 <dl><dt><a name="-RARSetPassword"><strong>RARSetPassword</strong></a>(*args, **kwargs)</dt></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>ERAR_BAD_ARCHIVE</strong> = 13<br>
<strong>ERAR_BAD_DATA</strong> = 12<br>
<strong>ERAR_ECLOSE</strong> = 17<br>
<strong>ERAR_ECREATE</strong> = 16<br>
<strong>ERAR_END_ARCHIVE</strong> = 10<br>
<strong>ERAR_EOPEN</strong> = 15<br>
<strong>ERAR_EREAD</strong> = 18<br>
<strong>ERAR_EWRITE</strong> = 19<br>
<strong>ERAR_NO_MEMORY</strong> = 11<br>
<strong>ERAR_SMALL_BUF</strong> = 20<br>
<strong>ERAR_UNKNOWN</strong> = 21<br>
<strong>ERAR_UNKNOWN_FORMAT</strong> = 14<br>
<strong>RARCloseArchive</strong> = &lt;ctypes._StdcallFuncPtr object&gt;<br>
<strong>RARExceptions</strong> = {11: &lt;class exceptions.MemoryError&gt;, 12: &lt;class UnRAR.ArchiveHeaderBroken&gt;, 13: &lt;class UnRAR.InvalidRARArchive&gt;, 15: &lt;class UnRAR.FileOpenError&gt;}<br>
<strong>RARGetDllVersion</strong> = &lt;ctypes._StdcallFuncPtr object&gt;<br>
<strong>RAROpenArchive</strong> = &lt;ctypes._StdcallFuncPtr object&gt;<br>
<strong>RAROpenArchiveEx</strong> = &lt;ctypes._StdcallFuncPtr object&gt;<br>
<strong>RARProcessFile</strong> = &lt;ctypes._StdcallFuncPtr object&gt;<br>
<strong>RARReadHeader</strong> = &lt;ctypes._StdcallFuncPtr object&gt;<br>
<strong>RARReadHeaderEx</strong> = &lt;ctypes._StdcallFuncPtr object&gt;<br>
<strong>RAR_DLL_VERSION</strong> = 3<br>
<strong>RAR_EXTRACT</strong> = 2<br>
<strong>RAR_OM_EXTRACT</strong> = 1<br>
<strong>RAR_OM_LIST</strong> = 0<br>
<strong>RAR_SKIP</strong> = 0<br>
<strong>RAR_TEST</strong> = 1<br>
<strong>RAR_VOL_ASK</strong> = 0<br>
<strong>RAR_VOL_NOTIFY</strong> = 1<br>
<strong>UCM_CHANGEVOLUME</strong> = 0<br>
<strong>UCM_NEEDPASSWORD</strong> = 2<br>
<strong>UCM_PROCESSDATA</strong> = 1<br>
<strong>__version__</strong> = '1.0'<br>
<strong>generators</strong> = _Feature((2, 2, 0, 'alpha', 1), (2, 3, 0, 'final', 0), 4096)<br>
<strong>unrar</strong> = &lt;WinDLL 'c:\Projects\Python Path\UnRAR\UnRARDLL\unrar.dll', handle da0000 at ba3620&gt;</td></tr></table>
</body></html>